﻿using UnityEngine;

namespace winS.Unity.Process
{
    /// <summary>
    /// 表示 <see cref="IProcess"/> 的编辑器视图数据
    /// </summary>
    public class ViewData
    {
        public float scale = 1f;
        public Vector2 offset = Vector2.zero;

        public ViewData()
        {
        }
        public ViewData(float scale, Vector2 offset)
        {
            this.scale = scale;
            this.offset = offset;
        }

        public override string ToString()
        {
            return $"偏移: {offset}, 缩放: {scale}";
        }
    }
}